Skip to content

Remove module index anchor from import.meta.url of top-level modules.#307

Merged
aomarks merged 2 commits intomasterfrom
no-meta-url-anchor
May 3, 2018
Merged

Remove module index anchor from import.meta.url of top-level modules.#307
aomarks merged 2 commits intomasterfrom
no-meta-url-anchor

Conversation

@aomarks
Copy link
Member

@aomarks aomarks commented May 3, 2018

No description provided.

@aomarks aomarks requested a review from rictic May 3, 2018 04:31
@aomarks aomarks merged commit d9e2559 into master May 3, 2018
@aomarks aomarks deleted the no-meta-url-anchor branch May 3, 2018 05:18
// unique keys in the registry. We don't want to see that here. Note
// that the real base URL may legitimately have an anchor, so it's not
// safe to trim the anchor of non-top-level script URLs.
url: mod.isTopLevel === true ?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style nit: I definitely prefer putting parens around the ternary condition.

Copy link
Contributor

@justinfagnani justinfagnani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

post-merge LGTM :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants